package net.lanelife.casino.cms.web.controller;

import net.lanelife.casino.caipiao.dto.admin.FeeRuleCreateDTO;
import net.lanelife.casino.caipiao.dto.admin.FeeRuleDTO;
import net.lanelife.casino.caipiao.dto.admin.FeeRuleTable;
import net.lanelife.casino.caipiao.dto.admin.FeeRuleUpdateDTO;
import net.lanelife.casino.caipiao.entity.FeeRule;
import net.lanelife.casino.caipiao.service.api.IFeeRuleService;
import net.lanelife.casino.cms.web.controller.support.CRUDController;
import net.lanelife.casino.common.service.support.IGenericService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping(value = FeeRuleController.PATH)
public class FeeRuleController extends CRUDController<FeeRule, Integer, FeeRuleDTO, FeeRuleCreateDTO, FeeRuleUpdateDTO, FeeRuleTable<FeeRuleDTO>> {
	
	public static final String PATH = "/fee-rule";
	
	public FeeRuleController() {
		super(PATH);
	}

	@Autowired
	private IFeeRuleService feeRuleService;
	
	@Override
	protected IGenericService<FeeRule, Integer> getService() {
		return feeRuleService;
	}
	
}
